package com.pxl.springbootinit.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pxl.springbootinit.model.dto.task.TaskClaimForm;
import com.pxl.springbootinit.model.dto.task.TaskForm;
import com.pxl.springbootinit.model.entity.Task;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pxl.springbootinit.model.vo.TaskVO;

/**
* @author MADAO
* @description 针对表【task(任务发布表)】的数据库操作Service
* @createDate 2024-12-20 11:59:03
*/
public interface TaskService extends IService<Task> {

    Boolean publishTask(TaskForm taskForm);

    TaskVO traceTask(Long id);

    Page<TaskVO> pageTask(TaskForm taskForm);

    public TaskVO getTaskVO(Task task);

    Boolean finishTask(Long id, Long userId);

    Page<TaskVO> pageAdminTask(TaskForm taskForm);

    Page<TaskVO> handleReviewPage(TaskForm taskForm, Long userId);
}
